package exception;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class ThrowDemo {
    public static void main(String[] args) {
        Student stu = new Student();
        try {
            stu.setAge(140);
        } catch (RuntimeException e) {
            System.out.println(1);
        }

//        stu.setAge(140);

//        try {
//            FileOutputStream fos = new FileOutputStream("fos.txt");
//            System.out.println(333);
//        } catch (Exception e) {
//            System.out.println(111);
//            e.printStackTrace();
//        }finally{
//            System.out.println(222);
//        }

    }
}
